package cn.mason.echarts.dao;

import cn.mason.echarts.model.User;

import java.util.List;
import java.util.Map;

/**
 * @author Mason
 * @date 2018/6/7
 */
public interface UserDao {

    int deleteByPrimaryKey(String id);

    int insert(User record);

    User selectByPrimaryKey(String id);

    List<User> listAll();

    List<User> listPage(int fromIndex, int toIndex);

    int updateByPrimaryKey(User record);

    List<User> listByParams(Map<String, Object> params);

    User findByAccount(String account);
}
